package cn.tedu.hospitalgroupproject.server.content.pojo.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;
import java.util.Date;

@Data
@TableName("t_appointment")
public class Appointment implements Serializable {

    /*
     * 预约ID*/
    @TableId(type = IdType.AUTO)
    private Long id ;
    /*
     * 预约看病时间*/
    private LocalDateTime visitTime;
    /*
     * 挂号费用*/
    private double fee;
    /*
    * 患者ID*/
    private Long patientId;
    /*
    * 诊所ID*/
    private Long clinicId;
    /*
    * 医生ID*/
    private Long doctorId;
    /*
     * 预约挂号创建时间*/
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;
    /**
     * 数据最后修改时间
     */
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;
}
